package com.lu.netty.io.dispatcher

import com.lu.netty.data.NettyMessageVo
import com.lu.netty.io.core.NettyConnector

/**
 * FileName : IMessageListener
 * Author : luqihua
 * Date : 2024/12/19
 * Desc :
 **/

interface INettyServerListener {

    fun onClientChange(
        connector: NettyConnector,
        isAccept: Boolean
    )

    fun onRegisterChange(
        connector: NettyConnector,
        isRegister: Boolean,
        messageVo: NettyMessageVo
    ): String

    fun onHeartbeat(connector: NettyConnector, messageVo: NettyMessageVo): String
    fun onContent(connector: NettyConnector, messageVo: NettyMessageVo): String
}